package cn.ucox.web.ms.polling;

/**
 * 同步数据记录
 *
 * @author chenw
 * @create 2017-05-11 11:48
 * @email javacspring@gmail.com
 */
public class SyncData {

    private String table;
    private int action;
    private String time;
    private int attachment;
    private String data;
    private long syncId;

    public SyncData(String table, int action, String time, int attachment, String data,long syncId) {
        this.table = table;
        this.data = data;
        this.time = time;
        this.action = action;
        this.attachment = attachment;
        this.syncId = syncId;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public boolean isAttachmentData() {
        return 1 == attachment;
    }

    public void setAttachment(int attachment) {
        this.attachment = attachment;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public long getSyncId() {
        return syncId;
    }

    public void setSyncId(long syncId) {
        this.syncId = syncId;
    }
}
